﻿using Microsoft.EntityFrameworkCore;
using T_vehicle.Domain;

namespace T_vehicle.Infrastructure
{
    public class MyDbContext : DbContext
    {
        public MyDbContext(DbContextOptions<MyDbContext> options) : base(options) { }


        //维修记录
        public DbSet<RepairRecords>? RepairRecords { get; set; }

        /// <summary>
        ///  保养记录
        /// </summary>
        public DbSet<Maintenance>? Maintenance { get; set; }

        /// <summary>
        /// 违章记录
        /// </summary>
        public DbSet<Illegal>? Illegal { get; set; }

        /// <summary>
        /// 事故记录
        /// </summary>
        public DbSet<Accident>? Accident { get; set; }
        /// <summary>
        ///  车胎使用记录
        /// </summary>
        public DbSet<TiresUsed>? TiresUsed { get; set; }
        /// <summary>
        /// 新增费用
        /// </summary>
        public DbSet<Expenses>? Expenses { get; set; }
    }
}